package com.innovaswc.scrum.persistencia;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the recurso database table.
 * 
 */
@Entity
@Table(name="recurso")
public class Recurso implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String login;

	//bi-directional many-to-one association to HistoriaCambio
	@OneToMany(mappedBy="recurso")
	private Set<HistoriaCambio> historiaCambios;

	//bi-directional many-to-one association to Tarea
	@OneToMany(mappedBy="recurso")
	private Set<Tarea> tareas;

    public Recurso() {
    }

	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public Set<HistoriaCambio> getHistoriaCambios() {
		return this.historiaCambios;
	}

	public void setHistoriaCambios(Set<HistoriaCambio> historiaCambios) {
		this.historiaCambios = historiaCambios;
	}
	
	public Set<Tarea> getTareas() {
		return this.tareas;
	}

	public void setTareas(Set<Tarea> tareas) {
		this.tareas = tareas;
	}
	
}